package com.java.base.exercise.current.selfcache.imooccache2;

import java.util.concurrent.ExecutionException;

/**
 * @Author RenPu
 * @Date 2021/9/20 19:55
 * @Version 1.0
 * @Description: 使用装饰者模式，将缓存的计算方法，缓存读取数据方法进行解耦
 **/
public interface Comtable<A, V> {
    V compter(A arg) throws InterruptedException, ExecutionException, Exception;
}
